﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using SubjectWorkShop.Core.Model;
using SubjectWorkShop.Core.SQLServerDAL;

namespace SubjectWorkShop.Web.admin
{
    public partial class _default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsCallback)
            {
                BindSubjects();
            }
        }

        private void BindSubjects()
        {
            Subject sub = new Subject();
            repSub.DataSource = sub.getSubjects();
            repSub.DataBind();
        }
    }
}
